<div class="hp-tab-newprd">
    <?php if(!is_iframe()){?>
        <ul class="j-sw-nav">
            <li class="newprd-s1 tab-li on"><a href="<?php echo base_path();?>distributor/list">查看</a></li>
            <?php if(user_access('add distributor')){ ?>
            <li class="newprd-s2 tab-li"><a href="<?php echo base_path();?>distributor/add">添加</a></li>
            <?php }?>
        </ul>
    <?php }?>

    <div class="newprd-s1">
        <div class="table-div">
            <div class="search-div">
                <?php  print _address_render_for_list($form);  ?>
                <div class="small-select small-input" style="clear:both">
                    <div class="search-label">升级状态:</div><?php print render($form['status']); ?>
                </div>
                <div class="max-big-input" style="clear:both"><div class="search-label">详细地址:</div><?php print render($form['fuzzy_address']); ?></div>
                <div class="max-big-input"><div class="search-label">经销商名称:</div><div style="float:left;"><?php print render($form['distributor']);?></div><?php   print render($form['distributor_manage']);?></div>
                <div class="search-submit" style="clear:both;"><?php print render($form['submit']); ?></div>
            </div>
            <img class="res-search" src='<?php echo base_path();?>sites/all/themes/tweme/images/images/res.png'>
            <div class="table-div">
                <?php print render($form['table']); ?>
            </div>
        </div>
    </div>
    <div class="newprd-s2" style="display: none;"><div class="table-div"><iframe marginwidth=0 marginheight=0 width=800px height=600 frameborder=0 src="<?php echo base_path();?>distributor/add/iframe"></iframe></div></div>
    <div class="newprd-s7" style="display: none;"><div class="table-div"><iframe marginwidth=0 marginheight=0 width=800px height=600 frameborder=0 src=""></iframe></div></div>
</div>

<?php print drupal_render_children($form); ?>
